home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
UUPC3
/
(MAIL__)
/
MACINIT.C
next >
Wrap
Text File
|
1991-07-25
|
419b
|
29 lines
/* macinit.c
*/
#ifdef THINK_C
# include "unixlibproto.h"
#endif THINK_C
#include <stdio.h>
macinit()
{
SysEnvRec SysEnv;
int i;
SysEnvirons(1, &SysEnv);
if ((i = OpenRFPerm("\pUUPC Settings", 0, fsRdPerm)) == -1 &&
(i = OpenRFPerm("\pUUPC Settings", SysEnv.sysVRefNum, fsRdPerm)) == -1) {
fprintf( stderr, "ERROR: Can't find \"UUPC Settings\" file here or in System Folder\r" );
}
return 0;
}